-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Support OS version in platform string #5614
base: master
Are you sure you want to change the base?
Conversation
688785a
to
171ad5b
Compare
@@ -9327,6 +9328,140 @@ COPY Dockerfile /foo | |||
} | |||
} | |||
|
|||
func testPlatformWithOSVersion(t *testing.T, sb integration.Sandbox) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thinking of a workaround to test this on Windows, given we don't have support for scratch
and the unionfs-like mounting... shouldn't be blocking if it's the only one pending, we can skip on Windows for now and file tracking issue on me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a881f71
to
33ecd88
Compare
@cpuguy83 Added this to v0.19 , RC planned for 01/10 |
33ecd88
to
1646474
Compare
This allows platforms following the new `platforms.FormatAll` function, which allows for setting the `OSVersion` field of the platform with `<os>(<ver>)/<arch>`. Signed-off-by: Brian Goff <[email protected]>
1646474
to
212a947
Compare
Upstreaming those vendor changes at containerd/platforms#22 |
This allows platforms following the new
platforms.FormatAll
function, which allows for setting theOSVersion
field of the platform with<os>(<ver>)/<arch>
.Closes #5115
Note: In order to make
FROM <img>
match the correct OS version with the new platform format some changes need to be made to containerd/platforms (see vendor/ changes).